<?php
function AddField( $assoc, $column, $style ) 
{
	echo ' <td class="'. $style . '">'. $assoc[$column] . "</td>\n";
}

function post_reply_display_field( $label,$field,$value,$type,$style ){
	$typeTags = explode(" ", $type);
	$controlType = $typeTags[0];
	$result = ' <tr><td>';
	$result .= $label;
	$result .= "</td></tr>\n";
	if( ereg("input", $controlType )) 
	{
		$result .= " <tr><td><$type class='$style' name='$field'
		value='$value'></td></tr>\n";
	}
	else
	{
			//added by Mitch
			$value = stripslashes($value);

			$result .= "<tr><td>";
			$result .= "<$type name='$field' class=\"$style\">";
			$result .= $value;
			$result .= "</$controlType></td></tr>\n";
	}
	echo $result;
}
?>